<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: drogon::test::ThreadSafeStream类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacedrogon.html">drogon</a></li><li class="navelem"><a class="el" href="namespacedrogon_1_1test.html">test</a></li><li class="navelem"><a class="el" href="classdrogon_1_1test_1_1ThreadSafeStream.html">ThreadSafeStream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="classdrogon_1_1test_1_1ThreadSafeStream-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">drogon::test::ThreadSafeStream类 参考<span class="mlabels"><span class="mlabel">final</span></span></div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="drogon__test_8h_source.html">drogon_test.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a088a1bec62b883a6f811a41620d03a59" id="r_a088a1bec62b883a6f811a41620d03a59"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1test_1_1ThreadSafeStream.html#a088a1bec62b883a6f811a41620d03a59">ThreadSafeStream</a> (std::ostream &amp;os)</td></tr>
<tr class="separator:a088a1bec62b883a6f811a41620d03a59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd65cd6f8713f080a6f9e83b5f7605d0" id="r_afd65cd6f8713f080a6f9e83b5f7605d0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1test_1_1ThreadSafeStream.html#afd65cd6f8713f080a6f9e83b5f7605d0">~ThreadSafeStream</a> ()</td></tr>
<tr class="separator:afd65cd6f8713f080a6f9e83b5f7605d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d95aea36227709a4d6c76a2a730c028" id="r_a0d95aea36227709a4d6c76a2a730c028"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a0d95aea36227709a4d6c76a2a730c028"><td class="memTemplItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classdrogon_1_1test_1_1ThreadSafeStream.html#a0d95aea36227709a4d6c76a2a730c028">operator&lt;&lt;</a> (const T &amp;rhs)</td></tr>
<tr class="separator:a0d95aea36227709a4d6c76a2a730c028"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a7f0eb5a2f17c5511e62295ae45afed7d" id="r_a7f0eb5a2f17c5511e62295ae45afed7d"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1test_1_1ThreadSafeStream.html#a7f0eb5a2f17c5511e62295ae45afed7d">os_</a></td></tr>
<tr class="separator:a7f0eb5a2f17c5511e62295ae45afed7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:aad1da322323bf7dcc1428c6657d2bbb7" id="r_aad1da322323bf7dcc1428c6657d2bbb7"><td class="memItemLeft" align="right" valign="top">static std::mutex&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1test_1_1ThreadSafeStream.html#aad1da322323bf7dcc1428c6657d2bbb7">mtx_</a></td></tr>
<tr class="separator:aad1da322323bf7dcc1428c6657d2bbb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="a088a1bec62b883a6f811a41620d03a59" name="a088a1bec62b883a6f811a41620d03a59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a088a1bec62b883a6f811a41620d03a59">&#9670;&#160;</a></span>ThreadSafeStream()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">drogon::test::ThreadSafeStream::ThreadSafeStream </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="afd65cd6f8713f080a6f9e83b5f7605d0" name="afd65cd6f8713f080a6f9e83b5f7605d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd65cd6f8713f080a6f9e83b5f7605d0">&#9670;&#160;</a></span>~ThreadSafeStream()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">drogon::test::ThreadSafeStream::~ThreadSafeStream </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a0d95aea36227709a4d6c76a2a730c028" name="a0d95aea36227709a4d6c76a2a730c028"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d95aea36227709a4d6c76a2a730c028">&#9670;&#160;</a></span>operator&lt;&lt;()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream &amp; drogon::test::ThreadSafeStream::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="aad1da322323bf7dcc1428c6657d2bbb7" name="aad1da322323bf7dcc1428c6657d2bbb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad1da322323bf7dcc1428c6657d2bbb7">&#9670;&#160;</a></span>mtx_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::mutex drogon::test::ThreadSafeStream::mtx_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a7f0eb5a2f17c5511e62295ae45afed7d" name="a7f0eb5a2f17c5511e62295ae45afed7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f0eb5a2f17c5511e62295ae45afed7d">&#9670;&#160;</a></span>os_</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; drogon::test::ThreadSafeStream::os_</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="drogon__test_8h_source.html">drogon_test.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
